﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace TicTacGadget
{
    public static class GridExtensions
    {
        public static int Column(this FrameworkElement element)
        {
            return Grid.GetColumn(element);
        }
        public static int Row(this FrameworkElement element)
        {
            return Grid.GetRow(element);
        }
        public static void Column(this FrameworkElement element, int column)
        {
            Grid.SetColumn(element, column);
        }
        public static void Row(this FrameworkElement element, int row)
        {
            Grid.SetRow(element, row);
        }
        public static void ColumnSpan(this FrameworkElement element, int columns)
        {
            Grid.SetColumnSpan(element, columns);
        }
        public static void RowSpan(this FrameworkElement element, int rows)
        {
            Grid.SetRowSpan(element, rows);
        }
    }
}
